
<div class="tab-pane ">
    <style>

        .col-xs-6,.row{
            margin-top: 12px;
        }
        .col-xs-6 label{
            width: 100px
        }
        .form-group.has-success label,.form-group.has-error label{
            color: #000000;
        }
       
    </style>
    <div class="row">
        <div class="col-xs-12">
            <form id="add-form"  role="form" data-toggle="" method="POST" action="">
                <div class="form-group">
                    <legend>外联工作单发布</legend>
                    <div class="row">
                        <div class="col-xs-3">
                            <label>分公司</label>
                            <input type="text"  class="form-control" value="{$gongsi['dep']}" disabled  />
                        </div>
                        <div class="col-xs-3">
                            <label>外联</label>
                            <input type="text"  class="form-control" value="{$gongsi['name']}" disabled  />

                        </div>
                        <div class="col-xs-3">
                            <label>地区</label>
                            {:Form::cxselect('ajax/area', ['province','city','area'], ['province'=>'0', 'city'=>'','area'=>''])}
                        </div>
                        <div class="col-xs-3">
                            <label>本学校销量</label>
                            <input type="text" name="row[sales]" data-rule="required" class="form-control"   placeholder="销量" />
                        </div>
                    </div>





                    <div class="row">
                        <div class="col-xs-3">
                            <label>驻地地址</label>
                            <input type="text" name="row[resi]" data-rule="required" class="form-control"  placeholder="驻地地址" />
                        </div>
                        <div class="col-xs-3">
                            <label>学校</label>
                            <input type="text" name="row[school_id]" readonly data-rule="required" class="form-control selectpage"  data-multiple="false" data-source="/api/base/school" data-field="name"   placeholder="请选择学校" />

                        </div>
                        <div class="col-xs-3">
                            <label>{:__('School.Reg_level')}</label>
                            <select  id="c-level" data-rule="required" class="form-control selectpicker" name="row[reg_level]">
                                {foreach name="$week['regLevelList']" item="vo"}
                                <option value="{$key}" >{$vo}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="col-xs-3">
                            <label>学校地址</label>
                            <input type="text" name="row[school_add]" data-rule="required" class="form-control"   placeholder="学校地址" />
                        </div>

                    </div>


                    <div class="row">
                        <div class="col-xs-3">
                            <label>学校人数</label>
                            <input type="number" name="row[scholl_type][wen]" id="sch_wen"  class="form-control"  placeholder="文科人数" />

                            <input type="number" name="row[scholl_type][li]"  id="sch_li"  class="form-control" placeholder="理科人数" />
                            <input type="number" name="row[school_num]"  id="sch"  data-rule="required" class="form-control" style="width:80px;" placeholder="学校人数" />
                        </div>
                        <div class="col-xs-3">
                            <label>班数</label>
                            <input type="number" name="row[class_type][wen]" id="class_wen"  class="form-control" placeholder="文科数量" />

                            <input type="number" name="row[class_type][li]"  id="class_li"   class="form-control"placeholder="理科数量" />
                            <input type="number" name="row[class_num]" id="class" data-rule="required" class="form-control" placeholder="班数" />

                        </div>
                        <div class="col-xs-3">
                            <label>发书数</label>
                            <input type="text" name="row[issued]" data-rule="required" class="form-control"  placeholder="发书数" />
                        </div>
                        <div class="col-xs-3">
                            <label>回执数</label>
                            <input type="text" name="row[receipt]" data-rule="required" class="form-control"   placeholder="回执数" />
                        </div>

                    </div>
                    <div class="row">


                        <div class="col-xs-3">
                            <label>{:__('School.Level')} </label>
                            <select name="row[level]" class="form-control" data-rule="required">
                                {foreach name="$week['LevelList']" item="vo"}
                                <option value="{$key}">{$vo}</option>
                                {/foreach}

                            </select>
                        </div>
                        <div class="col-xs-3">
                            <label>{:__('School.Ranking_level')} </label>
                            <select name="row[ranking_level]" class="form-control" data-rule="required">

                                {foreach name="$week['rankingLevelList']" item="vo"}
                                <option value="{$key}">{$vo}</option>
                                {/foreach}

                            </select>
                        </div>


                    </div>

                    <div class="row">
                        <div class="col-xs-4">
                            <label>年级组长</label>

                            <dl class="fieldlist" data-name="row[grade]" data-index="1" data-template="zuzhang">

                            <dd>
                                    <ins>姓名</ins>
                                    <ins>联系方式</ins>
                                </dd>

                                <dd class="form-inline">
                                    <input type="text"  data-rule="required"  name="row[grade][0][id]" style="width: 110px" class="form-control" value="" size="10" />
                                    <input type="number"  data-rule="required"  name="row[grade][0][name]" style="width: 110px" class="form-control" value="" size="30" />
                                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                </dd>
                                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>

                            </dl>
                        </div>

                        <div class="col-xs-4">
                            <label>折扣码发放</label>

                            <dl class="fieldlist"  data-template="zhekou" data-index="1" data-name="row[dis]">
                                <dd>
                                    <ins>折扣码</ins>
                                    <ins>教师姓名</ins>
                                </dd>
                                <dd class="form-inline">
                                    <input type="text" name="row[dis][0][id]"  data-rule="required" style="width: 110px"  class="form-control" value="" size="10" />
                                    <input type="text" name="row[dis][0][name]"  data-rule="required"  style="width: 110px" class="form-control" value="" size="30" />
                                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                </dd>
                                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                            </dl>
                        </div>
                        <div class="col-xs-4">
                            <label>购物卡共计</label>

                            <dl class="fieldlist"  data-template="gouwu" data-index="1" data-name="row[Shopping]">
                                <dd>
                                    <ins>面额</ins>
                                    <ins>个数</ins>
                                </dd>
                                <dd class="form-inline">
                                    <input type="number" name="row[shopping][0][id]"   data-rule="required"  style="width: 110px" class="form-control" value="" size="10" />
                                    <input type="number" name="row[shopping][0][name]"  data-rule="required"  style="width: 110px"  class="form-control" value="" size="30" />
                                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                </dd>

                                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                            </dl>
                        </div>

                    </div>


                    <div class="row">
                        <div class="col-xs-4">
                            <label>U盘共计</label>

                            <dl class="fieldlist" data-template="youpan" data-index="1" data-name="row[disk]">
                                <dd>
                                    <ins>个数</ins>
                                    <ins>G</ins>
                                </dd>
                                <dd class="form-inline">
                                    <input type="number"  data-rule="required"  name="row[disk][0][id]" style="width: 110px"  class="form-control" value="" size="10" />
                                    <select name="row[disk][0][name]" class="form-control">
                                        {volist name="diskList" id="vo"}
                                        <option value="{$key}">{$vo}</option>
                                        {/volist}

                                    </select>
                                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                </dd>
                            <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                            </dl>
                        </div>

                        <div class="col-xs-4">
                            <label>充值卡</label>

                            <dl class="fieldlist" data-template="chongzhi" data-index="1" data-name="row[rechar]">
                                <dd>
                                    <ins>面额</ins>
                                    <ins>张数</ins>
                                </dd>
                                <dd class="form-inline">
                                    <input type="number" name="row[rechar][0][id]"  style="width: 110px" class="form-control" value="" size="10" />
                                    <input type="number" name="row[rechar][0][name]" style="width: 110px"  class="form-control" value="" size="30" />
                                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                                    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
                                </dd>
                                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                            </dl>
                        </div>
                        <div class="col-xs-4">
                            <label>样书明细</label>

                            <dl class="fieldlist" data-template="yangshu" data-index="1" data-name="row[yangshu]">
                                <dd>
                                    <ins>科目</ins>
                                    <ins>数量</ins>
                                </dd>
                                <dd class="form-inline">
                                    <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                                        <select class="first form-control" name="row[sample][0][kemu]" data-url="ajax/category?type=page&amp;pid=5"></select>
                                        <select class="second form-control" name="row[sample][0][kemus]" data-url="ajax/category" data-query-name="pid"></select>
                                        <input type="text" name="row[sample][0][name]" style="width: 110px"  class="form-control" value="" size="30" />

                                    </div>

                                </dd>


                                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a></dd>
                            </dl>
                        </div>

                    </div>
                    <div class="row">
                        <div class="col-xs-3">
                            <label>合跑人</label>
                            <input type="text" name="row[runner]"  class="form-control selectpage" style="width:166px;" data-multiple="true" data-source="integral/outtasks/runer/id/{$weekid}" data-primary-key="userid" data-field="username_text"   placeholder="合跑人" />

                        </div>

                    </div>



                <div class="form-group layer-footer" style="margin-left: 80px">
                    <label class="control-label col-xs-6"></label>
                    <div class="col-xs-6 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script id="zuzhang">
    <dd class="form-inline">
        <input type="text" name="<%=name%>[<%=index%>][id]" style="width: 110px"  class="form-control" value="" size="10" />
        <input type="text" name="<%=name%>[<%=index%>][name]" style="width: 110px"  class="form-control" value="" size="30" />
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script id="zhekou">
    <dd class="form-inline">
        <input type="text" name="<%=name%>[<%=index%>][id]"  style="width: 110px" class="form-control" value="" size="10" />
        <input type="text" name="<%=name%>[<%=index%>][name]" style="width: 110px"  class="form-control" value="" size="30" />
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script id="gouwu">
    <dd class="form-inline">
        <input type="text" name="<%=name%>[<%=index%>][id]" style="width: 110px"  class="form-control" value="" size="10" />
        <input type="text" name="<%=name%>[<%=index%>][name]"  style="width: 110px" class="form-control" value="" size="30" />
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script id="youpan">
    <dd class="form-inline">
        <input type="text" name="<%=name%>[<%=index%>][id]"  style="width: 110px" class="form-control" value="" size="10" />

        <select class="form-control" name="<%=name%>[<%=index%>][name]">
        {volist name="diskList" id="vv" key="ks"}
        <option   value="{$ks}">{$vv}</option>
    {/volist}

        </select>
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script id="chongzhi">
    <dd class="form-inline">
        <input type="text" name="<%=name%>[<%=index%>][id]"  style="width: 110px" class="form-control" value="" size="10" />
        <input type="text" name="<%=name%>[<%=index%>][name]" style="width: 110px"  class="form-control" value="" size="30" />
        <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
    <span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>
    </dd>
</script>
<script id="yangshu">
    <dd class="form-inline">
        <div class="form-inline" data-toggle="cxselect" id="<%=index%>yangshu" data-selects="first<%=index%>,second<%=index%>">
        <select class="first<%=index%> form-control" name="row[sample][<%=index%>][kemu]" data-url="ajax/category?type=page&amp;pid=5"></select>
        <select class="second<%=index%> form-control" name="row[sample][<%=index%>][kemus]" data-url="ajax/category" data-query-name="pid"></select>
        <input type="text" name="row[sample][<%=index%>][name]" style="width: 110px"  class="form-control" value="" size="30" />

        </div>

        </dd>

</script>







